import {bigComOp} from '/mixins/bigComOp.js';
const App = {
    data() {
        return {
            // 左侧边栏数据状态
            sideNav: [
                {
                    id: 0,
                    name: '首页',
                    icon: 'HomeFilled',
                    url: null,
                    closable: false,
                },{
                    id: 3,
                    icon: 'Star',
                    name: '项目列表',
                    url: 'http://client.sso.com:8089/project/list',
                    tip: 'LSP'
                }, {
                    id: 4,
                    icon: 'ForkSpoon',
                    name: '项目表单页',
                    url: 'http://client.sso.com:8089/project/form',
                    tip: 1000
                }, {
                    id: 5,
                    icon: 'Cherry',
                    name: 'show1',
                    url: 'http://server.sso.com:8088/show1',
                    tip: 22
                }, {
                    id: 6,
                    icon: 'CaretRight',
                    name: 'show2',
                    url: 'http://client.sso.com:8088/show2',
                    tip: 22
                },
                {
                    id: 7,
                    icon: 'CaretRight',
                    name: '嵌套首页试试',
                    url: 'http://server.sso.com:8088/33o/index',
                    tip: 22
                }
                ,
                {
                    id: 8,
                    icon: 'CaretRight',
                    name: '404',
                    url: 'http://client.sso.com:8088/show4',
                    tip: 22,
                    children:[
                        {
                            id: 81,
                            name: '首页',
                            icon: 'HomeFilled',
                            url: null,
                            closable: false,
                        },{
                            id: 82,
                            icon: 'Star',
                            name: 'rs1',
                            url: 'http://localhost:8089/r/s1',
                            tip: 'LSP'
                        }, {
                            id: 83,
                            icon: 'ForkSpoon',
                            name: 'nav',
                            url: 'http://localhost:8088/33o/index',
                            tip: 1000
                        }, {
                            id: 84,
                            icon: 'Cherry',
                            name: 'show1',
                            url: 'http://localhost:8088/show1',
                            tip: 22
                        }, {
                            id: 85,
                            icon: 'CaretRight',
                            name: 'show2',
                            url: 'http://localhost:8088/show2',
                            tip: 22
                        },
                        {
                            id: 86,
                            icon: 'CaretRight',
                            name: 'show3',
                            url: 'http://localhost:8088/show3',
                            tip: 22
                        }
                    ]
                }
            ],
            //头部操作栏数据 fr布局最前面的在最右边
            headerOperationList: [
                {
                    type: 'button',
                    value: '备案',
                    color: '#9ACD32',
                    tip: true,
                }, {
                    type: 'icon',
                    icon: 'Reading',
                    color: '#FF0000',
                }, {
                    type: 'icon',
                    icon: 'Tools',
                    color: '#FF0000',
                }, {
                    type: 'icon',
                    icon: 'CaretRight',
                    color: '#EE3B3B',
                    tip: true,
                }, {
                    type: 'icon',
                    icon: 'ArrowDown',
                    color: '#EE3B3B',
                    tip: true,
                }, {
                    type: 'icon',
                    icon: 'SetUp',
                    color: '#EE3B3B',
                    tip: true,
                }, {
                    type: 'button',
                    value: '预警',
                    color: '#CD00CD',
                }
            ],
        }
    },
    mixins: [ bigComOp ],
    methods: {

    },
    mounted() {
        // let data={
        //     type:'PARENT_SKIP',
        //     val:'https://baidu.com'
        // }
        // this.disposeParam(data)
        // console.log(window.parent.postMessage)
    },

};

const app = Vue.createApp(App);
app.use(ElementPlus, {
    locale: ElementPlusLocaleZhCn,
});
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount("#app");
